//路由配置
import Login from "@/pages/Login";
import GeekLayout from "@/pages/Layout";
import { createBrowserRouter } from "react-router-dom"
import AuthRouer from "@/components/AuthRoute";
import Home from "@/pages/Home";
import Article from "@/pages/Article";
import Publish from "@/pages/Publish";
const router = createBrowserRouter([
    {
        path: "/",
        element: <AuthRouer><GeekLayout /></AuthRouer>,
        children: [{
            index: true,
            element: <Home />
        },{
            path:"/article",
            element:<Article/>
        },{
            path:"/publish",
            element:<Publish/>
        }
    ]
    },
    {
        path: "/login",
        element: <Login />
    }
])

export default router